package com.ruoyi.library.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 关联关系
 *
 * @author ZhangYu
 * @date 2024/05/16
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("dts_digital_twin_relation")
public class DtsDigitalTwinRelation implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 孪生体id
     */
    private Long twinId;

    /**
     * 关联id
     */
    private Long relationId;

    /**
     * 关联类型：0、资产，1、构件，2、模型，3、业务，4、空间
     */
    private Integer relationType;

}
